banniere
BLUMAX WebSite
Espace privé
Adresse courriel :
Mot de passe :
Stat
  • 4 inscrits sur le site
  • 0 personne en ligne
  • 38 téléchargements
  • 34 articles
  • 65 réponses dans la FAQ
  • Les 2 derniers inscrits
    - Airwheel
    - PoPo
Articles - Linux - Installer ZNC sur Debian

Comment installer un serveur ZNC sur votre Raspberry Pi

Le Raspberry ne doit etre utiliser par un autre programme pendant l'opération

Pour avoir le support SSL (utile pour certain module), Perl, Python :
sudo apt-get install libssl-dev libperl-dev pkg-config
sudo apt-get install python3-dev python3 swig
sudo apt-get install python-software-properties software-properties-common
sudo apt-get install libperl-dev libicu-dev gdb perl-dev tcl-dev cyrus-sasl-dev

Commencez par télécharger les sources et les décompresser :

wget http://znc.in/releases/znc-latest.tar.gz
tar -zxvf znc-latest.tar.gz
cd znc-1.6.0

Maintenant lancez cette commande :
./configure

Si le "configure" échoue en retournant ceci :

pi@octopi ~/znc-1.6.0 $ ./configure
checking for g++... g++
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking whether g++ supports C++11 features by default... no
checking whether g++ supports C++11 features with -std=c++11... no
checking whether g++ supports C++11 features with -std=c++0x... no
configure: No compiler with C++11 support was found
configure: error: Either upgrade your compiler, or use ZNC 1.4
pi@octopi ~/znc-1.6.0 $


Il faut installer gcc-4.8 et g++-4.8 avec la commande :
sudo apt-get install gcc-4.8 g++-4.8
Et ensuite refaire le "configure" avec ces parametres :
./configure CXX=g++-4.8 CC=gcc-4.8

Enfin, lancez la compilation avec :
make
Cette opération peut durée 30 à 60 minutes ou plus sur un RaspberryPi

Ensuite faite :
sudo make install

Pour lancer la configuration de ZNC tapez ceci :
znc --makeconf

Plusieur questions vont vous être posées, repondez ceci :
Listen on port (1025 to 65534): 6666
Listen using SSL (yes/no) [no]: no
Listen using both IPv4 and IPv6 (yes/no) [yes]: no
Username (alphanumeric): votrepseudo
Enter password:
confirm password: *
Nick {usermisavant}: Le pseudo que vous souhaitez avoir sur l'IRC
Alternate nick: Pseudo alternatife ou cas où le votre serez prit
Ident [boboss]: C'est l'identifiant pour vous connecter sur le ZNC <- DOTO: A revoir
Real name [Got ZNC?]: Votre "vrai" nom "{vrai pseudo ???????}"
Set up a network? (yes/no) [yes]: yes
Name [freenode]: ZNC
Server host (host only): chat.freenode.net
Server uses SSL? (yes/no) [no]: no
Server port (1 to 65535) [6667]: 6667
Server password (probably empty): Ne rien mettre
Initial channels: reprap-fr
Launch ZNC now? (yes/no) [yes]: yes

Vous pouvez maintenant vous connecter a l'administration de votre ZNC par http a cette adresse : http://ip_de_votre_serveur:6666/
Vous pouvez aussi vous connecter a votre ZNC par un client IRC, toute fois il faudra le configurer correctement.

Merci à Boboss d'avoir participer a cette article ainsi que de l'avoir corriger.

Par Blumax le 14/06/2017
Aucun commentaire
Vous devez vous connecter pour poster un commentaire
© 2004-2024 blumax.fr